package cn.it.shop.pojo;

import java.io.Serializable;

/**
 * Sorder entity. @author MyEclipse Persistence Tools
 */

public class Sorder implements Serializable {

	private static final long serialVersionUID = 3431242734938174143L;

	private Integer id;
	private String name;
	private Double price;
	private Integer number;
	// 关联商品对象, 通过商品的gid来判断是否为相同商品
	private Goods goods;
	// 配置购物项与购物车的关联,添加购物项时才会有外键
	private Forder forder;
	
	

	// Constructors

	public Forder getForder() {
		return forder;
	}

	public void setForder(Forder forder) {
		this.forder = forder;
	}

	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	/** default constructor */
	public Sorder() {
	}

	/** minimal constructor */
	public Sorder(Integer number) {
		this.number = number;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}
}